﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace ECCIT.Extension.Weibo_v1.Configuration
{
    /// <summary>
    /// Represents the response error handler configuration.
    /// </summary>
    public class HandlerConfigurationElement : ConfigurationElement
    {
        /// <summary>
        /// Gets or sets the type property.
        /// </summary>
        [ConfigurationProperty("type", IsRequired = true)]
        public string Type
        {
            get
            {
                return (string)this["type"];
            }
            set
            {
                this["type"] = value;
            }
        }

        /// <summary>
        /// Gets or sets the error code pattern property.
        /// </summary>
        [ConfigurationProperty("errorCode", IsKey = true)]
        public string ErrorCode
        {
            get
            {
                return (string)this["errorCode"];
            }
            set
            {
                this["errorCode"] = value;
            }
        }
    }
}
